package protobuf {
	import com.netease.protobuf.*;
	use namespace com.netease.protobuf.used_by_generated_code;
	import com.netease.protobuf.fieldDescriptors.*;
	import flash.utils.Endian;
	import flash.utils.IDataInput;
	import flash.utils.IDataOutput;
	import flash.utils.IExternalizable;
	import flash.errors.IOError;
	import flash.utils.ByteArray;
	// @@protoc_insertion_point(imports)

	// @@protoc_insertion_point(class_metadata)
	public dynamic final class AUTH_8881GAME_METHOD_INFO extends com.netease.protobuf.Message {
		/**
		 *  @private
		 */
		public static const PUBLIC_KEY:FieldDescriptor$TYPE_BYTES = new FieldDescriptor$TYPE_BYTES("protobuf.AUTH_8881GAME_METHOD_INFO.public_key", "publicKey", (1 << 3) | com.netease.protobuf.WireType.LENGTH_DELIMITED);

		public var publicKey:flash.utils.ByteArray;

		/**
		 *  @private
		 */
		public static const USERNAME:FieldDescriptor$TYPE_STRING = new FieldDescriptor$TYPE_STRING("protobuf.AUTH_8881GAME_METHOD_INFO.username", "username", (2 << 3) | com.netease.protobuf.WireType.LENGTH_DELIMITED);

		public var username:String;

		/**
		 *  @private
		 */
		public static const BISADULT:FieldDescriptor$TYPE_BOOL = new FieldDescriptor$TYPE_BOOL("protobuf.AUTH_8881GAME_METHOD_INFO.bIsAdult", "bIsAdult", (3 << 3) | com.netease.protobuf.WireType.VARINT);

		public var bIsAdult:Boolean;

		/**
		 *  @private
		 */
		public static const SIGN:FieldDescriptor$TYPE_BYTES = new FieldDescriptor$TYPE_BYTES("protobuf.AUTH_8881GAME_METHOD_INFO.sign", "sign", (4 << 3) | com.netease.protobuf.WireType.LENGTH_DELIMITED);

		public var sign:flash.utils.ByteArray;

		/**
		 *  @private
		 */
		public static const TIME:FieldDescriptor$TYPE_UINT32 = new FieldDescriptor$TYPE_UINT32("protobuf.AUTH_8881GAME_METHOD_INFO.time", "time", (5 << 3) | com.netease.protobuf.WireType.VARINT);

		public var time:uint;

		/**
		 *  @private
		 */
		public static const USERID:FieldDescriptor$TYPE_UINT64 = new FieldDescriptor$TYPE_UINT64("protobuf.AUTH_8881GAME_METHOD_INFO.userid", "userid", (6 << 3) | com.netease.protobuf.WireType.VARINT);

		public var userid:UInt64;

		/**
		 *  @private
		 */
		override used_by_generated_code final function writeToBuffer(output:com.netease.protobuf.WritingBuffer):void {
			com.netease.protobuf.WriteUtils.writeTag(output, com.netease.protobuf.WireType.LENGTH_DELIMITED, 1);
			com.netease.protobuf.WriteUtils.write$TYPE_BYTES(output, this.publicKey);
			com.netease.protobuf.WriteUtils.writeTag(output, com.netease.protobuf.WireType.LENGTH_DELIMITED, 2);
			com.netease.protobuf.WriteUtils.write$TYPE_STRING(output, this.username);
			com.netease.protobuf.WriteUtils.writeTag(output, com.netease.protobuf.WireType.VARINT, 3);
			com.netease.protobuf.WriteUtils.write$TYPE_BOOL(output, this.bIsAdult);
			com.netease.protobuf.WriteUtils.writeTag(output, com.netease.protobuf.WireType.LENGTH_DELIMITED, 4);
			com.netease.protobuf.WriteUtils.write$TYPE_BYTES(output, this.sign);
			com.netease.protobuf.WriteUtils.writeTag(output, com.netease.protobuf.WireType.VARINT, 5);
			com.netease.protobuf.WriteUtils.write$TYPE_UINT32(output, this.time);
			com.netease.protobuf.WriteUtils.writeTag(output, com.netease.protobuf.WireType.VARINT, 6);
			com.netease.protobuf.WriteUtils.write$TYPE_UINT64(output, this.userid);
			for (var fieldKey:* in this) {
				super.writeUnknown(output, fieldKey);
			}
		}

		/**
		 *  @private
		 */
		override used_by_generated_code final function readFromSlice(input:flash.utils.IDataInput, bytesAfterSlice:uint):void {
			var public_key$count:uint = 0;
			var username$count:uint = 0;
			var bIsAdult$count:uint = 0;
			var sign$count:uint = 0;
			var time$count:uint = 0;
			var userid$count:uint = 0;
			while (input.bytesAvailable > bytesAfterSlice) {
				var tag:uint = com.netease.protobuf.ReadUtils.read$TYPE_UINT32(input);
				switch (tag >> 3) {
				case 1:
					if (public_key$count != 0) {
						throw new flash.errors.IOError('Bad data format: AUTH_8881GAME_METHOD_INFO.publicKey cannot be set twice.');
					}
					++public_key$count;
					this.publicKey = com.netease.protobuf.ReadUtils.read$TYPE_BYTES(input);
					break;
				case 2:
					if (username$count != 0) {
						throw new flash.errors.IOError('Bad data format: AUTH_8881GAME_METHOD_INFO.username cannot be set twice.');
					}
					++username$count;
					this.username = com.netease.protobuf.ReadUtils.read$TYPE_STRING(input);
					break;
				case 3:
					if (bIsAdult$count != 0) {
						throw new flash.errors.IOError('Bad data format: AUTH_8881GAME_METHOD_INFO.bIsAdult cannot be set twice.');
					}
					++bIsAdult$count;
					this.bIsAdult = com.netease.protobuf.ReadUtils.read$TYPE_BOOL(input);
					break;
				case 4:
					if (sign$count != 0) {
						throw new flash.errors.IOError('Bad data format: AUTH_8881GAME_METHOD_INFO.sign cannot be set twice.');
					}
					++sign$count;
					this.sign = com.netease.protobuf.ReadUtils.read$TYPE_BYTES(input);
					break;
				case 5:
					if (time$count != 0) {
						throw new flash.errors.IOError('Bad data format: AUTH_8881GAME_METHOD_INFO.time cannot be set twice.');
					}
					++time$count;
					this.time = com.netease.protobuf.ReadUtils.read$TYPE_UINT32(input);
					break;
				case 6:
					if (userid$count != 0) {
						throw new flash.errors.IOError('Bad data format: AUTH_8881GAME_METHOD_INFO.userid cannot be set twice.');
					}
					++userid$count;
					this.userid = com.netease.protobuf.ReadUtils.read$TYPE_UINT64(input);
					break;
				default:
					super.readUnknown(input, tag);
					break;
				}
			}
		}

	}
}
